package com.common.utils;

import java.math.BigDecimal;

/**
 * @author lihh
 * @since 2015/12/14
 */
public class BigDecimalUtil {
    public static boolean lassEqualThan(BigDecimal number, BigDecimal compareValue){
        if (number == null){
            return true;
        }else{
            return number.compareTo(compareValue) <= 0;
        }
    }

    public static boolean lassEqualThanZero(BigDecimal number){
        return lassEqualThan(number, BigDecimal.ZERO);
    }
}
